package com.itheima.ydd.dto;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.itheima.ydd.entity.SysMenu;
import com.itheima.ydd.entity.SysRole;
import lombok.Data;

import java.util.List;

@Data
public class SysRoleDto extends SysRole {


    /**
     * 对应的菜单详情
     */
    //角色id
    @JsonProperty("role_id")
    @JSONField(name = "role_id")
    private String roleId;

    //角色对应的菜单列表详情
    @JsonProperty("role_menus")
    @JSONField(name = "role_menus")
    private List<SysMenu> roleMenus;

    @JsonProperty("menuids")
    private Integer[] menuIds;

    private List<SysMenu> AuthLis;

}

